﻿namespace Borg
{
    internal class PluginTask : TypeStoreTask
    {
        internal readonly PluginHandler PluginHandler;
        internal readonly Plugin Plugin;

        public PluginTask(PluginHandler pluginHandler, Plugin plugin)
        {
            PluginHandler = pluginHandler;
            Plugin = plugin;
        }

        internal override void Execute()
        {
            PluginHandler(Plugin);
        }
    }
}
